package cdu.sl.service;

import cdu.sl.common.PageResult;
import cdu.sl.dto.EmpQueryParamDTO;
import cdu.sl.entity.Employee;

import java.util.List;
import java.util.Optional;

public interface EmployeeService {
    List<Employee> findAll();

    Employee findById(Integer id);

    void add(Employee emp);

    void update(Employee emp);

    void delete(Integer id);

    PageResult<Employee> page(EmpQueryParamDTO empQueryParam);
}
